package it.softphone.commons.service.mail;

import javax.mail.MessagingException;

public interface MailService {

	public interface Message {
		
		Message setFrom( String from );
		
		Message setTo( java.util.Collection<String> to );
		
		Message setSubject( String subject );
		
		Message setBody( String body );
	}
	
	public interface SimpleMessage extends Message {
		
	}

	public interface HtmlMessage extends Message {
		
	}
	
	SimpleMessage newSimpleMessage();

	HtmlMessage newHtmlMessage();

	void sendMail( Message msg ) throws MessagingException;

}
